/**
 * Created by jinglupeng on 12/11/15.
 */
var process = require('child_process');

function deploy(file, path, callback) {
    var command = __dirname + '/../shell/deploy.sh ' + file + ' ' + path;
    process.exec(command, function (error, stdout, stderr) {
        callback && callback(error, stdout, stderr);
    });
}

module.exports = {
    deploy: deploy
}